C program to find non repeating characters in a string